// string::find
#include <iostream>
#include <string>
using namespace std;

#define NEQUAL(a, b) if (a != b) { cout << "Not equal" ; } else { cout << "Equal"; }

int main ()
{
	string str ("There are two needles in this haystack with needles.");
	string str2 ("sneedle");
	size_t found;

	// different member versions of find in the same order as above:
	found=str.find(str2);

	NEQUAL(found, std::string::npos)

		cout << endl << "first 'needle' found at: " << found << " npos: " << string::npos << endl;

	return 0;
}
